<!--<template>-->
<!--  <div style="padding: 20px">-->
<!--    <div class="filter-container">-->
<!--      <el-form :inline="true" :model="listQuery"  class="item-label" ref="JiraMaintainStatusSearch">-->
<!--        <el-form-item :label="$t('table.businessGroup')" prop="business_group_id">-->
<!--          <el-select-->
<!--            v-model="listQuery.business_group_id"-->
<!--            style="width: 120px;"-->
<!--            clearable-->
<!--            filterable-->
<!--            @change="handleSearch"-->
<!--            :placeholder="$t('table.selectPlaceHolder')" >-->
<!--            <el-option-->
<!--              v-for="item in businessGroupOptions"-->
<!--              :key="item.value"-->
<!--              :label="item.label"-->
<!--              :value="item.value">-->
<!--            </el-option>-->
<!--          </el-select>-->
<!--        </el-form-item>-->
<!--        <el-form-item :label="$t('table.createTime')" prop="searchDate">-->
<!--          <div class="block">-->
<!--            <el-date-picker-->
<!--              v-model="listQuery.searchDate"-->
<!--              value-format="timestamp"-->
<!--              type="datetimerange"-->
<!--              align="right"-->
<!--              @change="handleSearch"-->
<!--              start-placeholder="Start Time"-->
<!--              end-placeholder="End Time"-->
<!--              :default-time="['00:00:00', '23:59:59']">-->
<!--            </el-date-picker>-->
<!--          </div>-->
<!--        </el-form-item>-->
<!--        <div style="display: inline-block; margin-left: 50px">-->
<!--          <el-form-item>-->
<!--            <el-button type="primary" @click="handleSearch" icon="el-icon-search">{{ $t('table.search') }}</el-button>-->
<!--          </el-form-item>-->
<!--        </div>-->
<!--      </el-form>-->
<!--    </div>-->
<!--    <div>-->
<!--      <el-table-->
<!--        v-loading="listLoading"-->
<!--        :data="list"-->
<!--        border-->
<!--        highlight-current-row-->
<!--        style="width: 100%;"-->
<!--        :header-cell-style="{background: '#4580ad',color: '#fff'}"-->
<!--      >-->
<!--        <el-table-column-->
<!--          :label="$t('table.businessGroup')"-->
<!--          width="140px"-->
<!--          align="center"-->
<!--          show-overflow-tooltip-->
<!--        >-->
<!--          <template>-->
<!--            <span class="text-span">{{ value2lable(listQuery.business_group_id,'businessGroup') }}</span>-->
<!--          </template>-->
<!--        </el-table-column>-->

<!--        <el-table-column-->
<!--          :label="$t('table.assignee')"-->
<!--          width="280px"-->
<!--          align="center"-->
<!--          show-overflow-tooltip-->
<!--        >-->
<!--          <template slot-scope="{row}">-->
<!--            <span class="text-span">{{ row.assignee }}</span>-->
<!--          </template>-->
<!--        </el-table-column>-->

<!--        <el-table-column-->
<!--          :label="$t('table.jiraNo')"-->
<!--          width="140px"-->
<!--          align="center"-->
<!--          show-overflow-tooltip-->
<!--        >-->
<!--          <template slot-scope="{row}">-->
<!--            <span class="text-span">{{ row.jira_no }}</span>-->
<!--          </template>-->
<!--        </el-table-column>-->

<!--        <el-table-column-->
<!--          label="Empty Jira Fields"-->
<!--          header-align="center"-->
<!--          align="left"-->
<!--          show-overflow-tooltip-->
<!--        >-->
<!--          <template slot-scope="{row}">-->
<!--            <span class="text-span">{{ row.maintain_status }}</span>-->
<!--          </template>-->
<!--        </el-table-column>-->

<!--      </el-table>-->
<!--    </div>-->
<!--  </div>-->
<!--</template>-->

<!--<script lang="ts">-->
<!--import { Component, Vue } from 'vue-property-decorator'-->
<!--import { cloneDeep } from 'lodash'-->
<!--// import { getEnumArray, getLabelByValue } from '@/constant/enum'-->
<!--import { getRequest } from '@/api/utils/axios'-->
<!--// import { checkLiveJiraMaintainStatus } from '@/constant/url'-->
<!--import { Message } from 'element-ui'-->
<!--// import common from '@/common/common-function'-->

<!--@Component({-->
<!--  name: 'JiraMaintainStatus'-->
<!--})-->

<!--export default class extends Vue {-->
<!--  private businessGroupOptions = []-->
<!--  private listLoading = false-->
<!--  private list = []-->

<!--  async created() {-->
<!--    // this.businessGroupOptions = getEnumArray('businessGroup')-->
<!--    this.initParams()-->
<!--    this.handleSearch()-->
<!--  }-->

<!--  private listQuery = {-->
<!--    business_group_id: undefined,-->
<!--    env: undefined,-->
<!--    from_ctime: undefined,-->
<!--    to_ctime: undefined,-->
<!--    searchDate: []-->
<!--  }-->

<!--  private async handleSearch() {-->
<!--    this.listLoading = true-->
<!--    this.updateSearchDate()-->
<!--    this.filterListQuery()-->
<!--    const params = cloneDeep(this.listQuery)-->
<!--    params.searchDate = []-->
<!--    getRequest(checkLiveJiraMaintainStatus, params).then((response) => {-->
<!--      if (response.data.retcode === 0) {-->
<!--        this.list = response.data.data.map((v: any) => {-->
<!--          if (v.assignee === '') {-->
<!--            this.$set(v, 'assignee', 'not assigned')-->
<!--          }-->
<!--          return v-->
<!--        })-->
<!--        console.log(this.list)-->
<!--      } else {-->
<!--        Message({-->
<!--          message: ('retcode: ' + response.data.retcode) || '接口返回码不是0！',-->
<!--          type: 'error',-->
<!--          duration: 5 * 1000-->
<!--        })-->
<!--      }-->
<!--      this.listLoading = false-->
<!--    })-->
<!--    setTimeout(() => {-->
<!--      this.listLoading = false-->
<!--    }, 3 * 1000)-->
<!--  }-->

<!--  private updateSearchDate() {-->
<!--    if (this.listQuery.searchDate !== null && this.listQuery.searchDate.length !== 0) {-->
<!--      this.listQuery.from_ctime = Math.floor(this.listQuery.searchDate[0] / 1000)-->
<!--      this.listQuery.to_ctime = Math.floor(this.listQuery.searchDate[1] / 1000)-->
<!--    } else {-->
<!--      this.listQuery.from_ctime = undefined-->
<!--      this.listQuery.to_ctime = undefined-->
<!--    }-->
<!--  }-->

<!--  private filterListQuery() {-->
<!--    if (this.listQuery.business_group_id === '') {-->
<!--      this.listQuery.business_group_id = undefined-->
<!--    }-->
<!--  }-->

<!--  private initParams() {-->
<!--    this.listQuery.business_group_id = 2 // 出库-->
<!--    this.listQuery.searchDate[1] = new Date().getTime()-->
<!--    this.listQuery.searchDate[0] = common.getLastMonthTimestamp() * 1000-->
<!--  }-->

<!--  private value2lable(value: number, type: string): string {-->
<!--    return getLabelByValue(value, type)-->
<!--  }-->
<!--}-->
<!--</script>-->

<!--<style scoped>-->

<!--</style>-->
